<?php


namespace app\common\service;



/**
 * 基础提成计算
 * @purpose:
 * Class MaleUser
 */
class OrdinaryService implements ProjectService
{
    /**
     * 显示提成
     * @param $order_type
     * @param $is_add
     * @param $project
     * @return mixed
     */
    public function showCommission($order_type,$is_add,$project)
    {
        //排钟提成
        if ($order_type == '1' && $is_add == '1') {
            $commission = $project['queue_block_rate'];
            return  $commission;
        }
        //点钟提成
        if ($order_type == '2' && $is_add == '1') {
            $commission = $project['dot_block_rate'];
            return  $commission;
        }
        //call钟提成
        if ($order_type == '3' && $is_add == '1') {
            $commission = $project['call_block_rate'];
            return  $commission;
        }
        //优轮提成
        if ($order_type == '4' && $is_add == '1') {
            $commission = $project['queue_block_rate'];
            return  $commission;
        }
        //加钟提成
        if ($order_type == '5' && $is_add == '1') {
            $commission = $project['add_block_rate'];
            return  $commission;
        }
    }

}